package cn.jaye.fabric.infrastructure.mybatis.impl.mapper;

import cn.jaye.fabric.common.model.SuperMapper;
import cn.jaye.fabric.domain.model.Match;
import com.alibaba.fastjson.JSONArray;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Jaye
 * @create 2018-06-04 15:41
 */
@Mapper
public interface MatchMapper extends SuperMapper<Match> {
    List<Match> listEndMatch();

    JSONArray listAll();

    JSONArray listMatchByUserAndDate(@Param("guessCountDownTime") long guessCountDownTime, @Param("username") String username, @Param("startDate") String startDate, @Param("endDate") String endDat);

    JSONArray listMatchByDate(@Param("startDate") String startDate, @Param("endDate") String endDat);
}
